<!-- 添加 -->
<script id="tpl-add" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        {{ if(user.applet.shop_mode.value == 20) }}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 所属门店 </label>
            <div class="am-u-sm-9 am-u-end">
                <select name="data[shop_id]" style="width:200px" required>
                    <option value="">请选择</option>
                    {{ if(category) }}
                        {{ each category }}
                        <option value="{{ $value.shop_id }}">{{ $value.shop_name }}</option>
                        {{ /each}}
                    {{ /if }}
                </select>
            </div>
        </div>
        {{ /if }}
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">名称 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[name]" value="" placeholder="请输入选项名称" required>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">排序 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[sort]" value="100" required>
				<small>数字越小越靠前</small>
            </div>
        </div>
    </div>  
</script>